import request from '@/utils/request-product'
//1.获取sku列表数据
//GET /admin/product/list/{page}/{limit}
export const reqSkuInfoList=(page,limit)=>{
    return request({url:`/admin/product/list/${page}/${limit}`,method:'get'})
}

//2.sku列表的上架和下架
//GET /admin/product/cancelSale/{skuId}
export const reqskucancelSale=(skuId)=>{
    return request({url:`/admin/product/cancelSale/${skuId}`,method:'get'})
}
//GET /admin/product/onSale/{skuId}
export const reqskuonSale=(skuId)=>{
    return request({url:`/admin/product/onSale/${skuId}`,method:'get'})
}

//3.根据id获取sku接口信息
//GET /admin/product/getSkuById/{skuId}
export const reqskuByid=(skuId)=>{
    return request({url:`/admin/product/getSkuById/${skuId}`,method:'get'})
}


//4.根据id删除sku接口信息
//DELETE /admin/product/deleteSku/{skuId}
export const reqDeleteskuById=(skuId)=>{
    return request({url:`/admin/product/deleteSku/${skuId}`,method:'delete'})
}